package com.bonc.modules.business.service.impl;

import com.bonc.datasource.annotation.DataSource;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bonc.common.utils.PageUtils;
import com.bonc.common.utils.Query;

import com.bonc.modules.business.dao.TbWorkOrderIdentysubTypeDao;
import com.bonc.modules.business.entity.TbWorkOrderIdentysubTypeEntity;
import com.bonc.modules.business.service.TbWorkOrderIdentysubTypeService;

@DataSource("data")
@Service("tbWorkOrderIdentysubTypeService")
public class TbWorkOrderIdentysubTypeServiceImpl extends ServiceImpl<TbWorkOrderIdentysubTypeDao, TbWorkOrderIdentysubTypeEntity> implements TbWorkOrderIdentysubTypeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<TbWorkOrderIdentysubTypeEntity> page = this.page(
                new Query<TbWorkOrderIdentysubTypeEntity>().getPage(params),
                new QueryWrapper<TbWorkOrderIdentysubTypeEntity>()
        );

        return new PageUtils(page);
    }

}
